package com.mall.entity;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import org.springframework.format.annotation.DateTimeFormat;

import java.math.BigDecimal;
import java.util.Date;

/**
 * @author LiJinYang
 * @version 1.0
 * @email 283006176@qq.com
 * @date 2021/07/19 15:51
 * 砍价列表
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
public class TbBargainList {

    /**
     * 砍价列表ID
     */
    private Integer id;

    /**
     * 砍价商品图片
     */
    private String image;

    /**
     *砍价商品名称
     */
    private String bargainName;

    /**
     *商品介绍
     */
    private String productDesciption;

    /**
     *砍价价格
     */
    private BigDecimal bargainPrice;

    /**
     *总共砍价次数
     */
    private Integer totalTimes;

    /**
     *剩余砍价次数
     */
    private Integer remainingTimes;

    /**
     *开始时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date startingTime;

    /**
     *结束时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private Date endTime;

    /**
     *砍价状态
     */
    private String status;


}
